package com.qiall.project.data.mapper;

import com.qiall.project.data.entity.TaskInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 吴金辉
 */
@Mapper
public interface TaskInfoMapper {

    /**
     * @param taskInfo
     */
    void insert(TaskInfo taskInfo);

    /**
     *
     * @param taskInfo
     */
    void update(TaskInfo taskInfo);

    /**
     *
     * @param id
     * @return
     */
   TaskInfo select(@Param("id") Integer id);

   int  count(@Param("info") TaskInfo taskInfo,@Param("startDate")String startDate,@Param("endDate")String endDate);

    List<TaskInfo>  queryByPage(@Param("info") TaskInfo taskInfo,@Param("startDate")String startDate,@Param("endDate")String endDate,@Param("offset")int offset,@Param("limit")int limit);

    void delete(@Param("id")Integer id);
}
